
<form role="form" class="epii" method="post" data-form="1" action="{url room add_edit }">

    <div class="form-group">
        <label>名称：</label>
        <input type="text" class="form-control" name="r[name]" value="{? $info.name}" required
               placeholder="请输入房间名称">
    </div>
    {if $adminInfo['role']==1}
    <div class="form-group">
        <label>所属医院：</label>
        <select class="selectpicker" name="r[hospital_id]" id="" class="">
            {:options,$hospitals,$info.hospital_id}
        </select>
    </div>
    {/if}
    <div class="form-group">
        <label>类型：</label>
        <select class="selectpicker" name="r[type]" id="">
            {:options,$room_type,$info.type}
        </select>
    </div>
    <div class="form-group">
        <label>vip房：</label>
        <select class="selectpicker" name="r[is_vip]" id="">
            {:options,$room_vip,$info.is_vip}
        </select>
    </div>
    <div class="form-group">
        <label>状态：</label>
        <select class="selectpicker" name="r[status]" id="">
            {:options,$status,$info.status?1}
        </select>
    </div>
    <input type="hidden" name="id" value="{$id?0}">
    <div class="form-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>
